#coding:utf-8
'''
Created on 2012-6-27

@author: wb_suoyao.shen
'''
from django import forms
from django.forms import ModelForm
from ssyblog.tags.models import Tags
from ssyblog.diary.models import Diary

class TagForm(ModelForm):
    class Meta:
        model = Tags
        fields = ('name', 'description')
        
class DiaryForm(ModelForm):
    class Meta:
        model = Diary
        widgets = {
            'content' : forms.Textarea()
        }
        fields = ('title','diary_tag','summary','content')

